<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>产品管理--新增会员产品</title>
    <link rel="icon" href="favicon.ico" type="images/ico">
    <meta name="author" content="dc">
    <meta charset="utf-8">
    <link rel="stylesheet" type="text/css" href="/css/materialdesignicons.min.css">
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/css/animate.min.css">
    <link rel="stylesheet" type="text/css" href="/css/style.min.css">
    <link href="/js/bootstrap-table/bootstrap-table.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="/js/jquery-confirm/jquery-confirm.min.css" />
    <link rel="stylesheet" href="/css/input_tags.css"/>
    <!--时间选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css" />
    <link rel="stylesheet" type="text/css" href="/css/daterangepicker.css" />
    <!--日期选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datepicker/bootstrap-datepicker3.min.css">
    <link rel="stylesheet" href="/js/need/verfont.css" />
    <!-- 多选下拉 -->
    <link rel="stylesheet" href="/css/bootstrap-multiselect.css" type="text/css"/>
    <link rel="stylesheet" href="/css/bootstrap-select.css" type="text/css"/>
    <link rel="stylesheet" href="/css/skin.css"/>
    <style>
        .file-group .img-box {
            position: relative;
            width: 160px;
            height: 200px;
            margin-bottom: 12px;
            background-color: #f7f7f7;
            border-radius: 4px;
            overflow: hidden;
        }

        .file-group .img-box img {
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            max-width: 100%;
            max-height: 100%;
            margin: auto;
        }
    </style>
</head>
<body>
<div class="container-fluid">
    <div class="row">
        <div class="col-sm-12">
            <div class="card">
                <div class="card-header">
                    <h1>新增会员产品</h1>
                </div>
                <div class="card-body">
                    <form class="well form-well" autocomplete="off">
                        <div class="row">
                            <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                <label class="control-label label-required" for="memberCardName">会员卡名称</label>
                                <div class="form-content">
                                    <input type="text" class="form-control" id="memberCardName" placeholder="请输入会员卡名称">
                                </div>
                            </div>
                            <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12" style="display: none">
                                <label class="control-label label-required" for="memberProductCode">会员产品编码</label>
                                <div class="form-content">
                                    <input type="text" class="form-control" id="memberProductCode">
                                </div>
                            </div>
                            <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                <label class="control-label label-required" for="sellingCardPrice">售卡价格</label>
                                <div class="form-content">
                                    <input type="text" class="form-control" id="sellingCardPrice" name="sellingCardPrice" placeholder="请输入售卡价格" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,4})?).*$/g, '$1')"/>
                                </div>
                            </div>
                            <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                <label class="control-label label-required" for="productPeriodValidity">产品有效期</label>
                                <div class="form-content">
                                    <input type="text" class="form-control" id="productPeriodValidity"/>
                                </div>
                            </div>
                            <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                <label class="control-label label-required" for="serviceNumber">会员服务总次数</label>
                                <div class="form-content">
                                    <input type="text" class="form-control" id="serviceNumber" placeholder="请输入会员服务总次数" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,4})?).*$/g, '$1')"/>
                                </div>
                            </div>
                            <div class="col-sm-6">
                                <label class="control-label label-required">会员等级</label>
                                <div class="form-content">
                                    <input type="text" class="form-control" id="membershipLevel" placeholder="请输入会员等级" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,4})?).*$/g, '$1')"/>
                                </div>
                            </div>
                            <div class="col-sm-6">
                                <label class="control-label label-required">业绩换算比例</label>
                                <div class="form-content">
                                    <input type="text" class="form-control" id="performanceConversionRatio" placeholder="请输入业绩换算比例" onkeyup="value=value.replace(/[^\d^\.]+/g,'')" maxlength="4"/>
                                </div>
                            </div>
                            <div class="col-sm-6">
                                <label class="control-label label-required">是否计入会员产品业绩</label>
                                <div class="form-content">
                                    <label class="lyear-radio radio-inline radio-primary">
                                        <input type="radio" value="0" id="included_achievement" name="whetherIncludedAchievement"><span>是</span>
                                    </label>
                                    <label class="lyear-radio radio-inline radio-primary">
                                        <input type="radio" value="1" id="not_included_achievement" name="whetherIncludedAchievement"><span>否</span>
                                    </label>
                                </div>
                            </div>
                            <div class="col-sm-6">
                                <label class="control-label label-required">是否可续费产品</label>
                                <div class="form-content">
                                    <label class="lyear-radio radio-inline radio-primary">
                                        <input type="radio" value="0" id="renew" name="whetherRenew" checked><span>是</span>
                                    </label>
                                    <label class="lyear-radio radio-inline radio-primary">
                                        <input type="radio" value="1" id="no_renew" name="whetherRenew"><span>否</span>
                                    </label>
                                </div>
                            </div>
                            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                                <label class="control-label">上传图片</label>
                                <div class="form-content">
                                    <div class="file-group">
                                        <input type="file" accaccept=".png,.jpg,.jpeg,.bmp,.gif" id="customerPic" class="hidden">
                                        <div class="img-box" id="customerImgBox"></div>
                                        <button class="btn btn-default file-browser" type="button">上传图片</button>
                                    </div>
                                </div>
                                <p>上传图片格式：<code>.png</code>，<code>.jpg</code>，<code>.jpeg</code>，<code>.bmp</code>，<code>.gif</code></p>
                            </div>
                        </div>
                    </form>
                    <div class="form-actions">
                        <button class="btn btn-primary btn-label" type="button" onclick="addMemberProduct();"><label><i class="mdi mdi-check"></i></label>提交</button>
                        <div class="btn btn-default" onclick="cancelAddMemberProduct();">取消</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="/js/main.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" src="/js/popper.min.js"></script>
<script type="text/javascript" src="/js/jquery.cookie.min.js"></script>
<!--时间选择插件-->
<script src="/js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="/js/jquery-confirm/jquery-confirm.min.js"></script>
<script src="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="/js/bootstrap-datetimepicker/locale/zh-cn.js"></script>
<!--日期选择插件-->
<script src="/js/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="/js/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<script type="text/javascript" src="/js/crm/common/dataRangePicker.min.js"></script>
<!-- 多选框下拉 -->
<script type="text/javascript" src="/js/bootstrap-multiselect.js"></script>
<script type="text/javascript" src="/js/bootstrap-select.js"></script>
<script type="text/javascript" src="/js/bootstrap.lyear.dropdowntree.min.js"></script>
<!-- 通用js -->
<script src="/js/crm/common/common.js"></script>
<!--自定义js-->
<script src="/js/crm/productManager/addMemberProduct.js"></script>
</html>